#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
    int a = 0;
    scanf("%d", &a);
    switch (a)
    {
    case 0:;
    case 1:;
    case 2:;
    case 3:;
        printf("Good");
        break;
    case 4:;
    case 5:;
    case 6:;
    case 7:;
    case 8:;
    case 9:;
        printf("Danger");
        break;
    default:
        printf("Danger++");

    }
    return 0;
}
